/***************************************************************************//**
 *   @file   main.c
 *   @brief  main module for AD719x IIO firmware application
********************************************************************************
 * Copyright (c) 2021-22 Analog Devices, Inc.
 *
 * All rights reserved.
 *
 * This software is proprietary to Analog Devices, Inc. and its licensors.
 * By using this software you agree to the terms of the associated
 * Analog Devices Software License Agreement.
*******************************************************************************/

/******************************************************************************/
/***************************** Include Files **********************************/
/******************************************************************************/
#include <stdio.h>
#include <assert.h>

#include "ad719x_iio.h"
#include "no_os_error.h"
/******************************************************************************/
/********************** Macros and Constants Definitions **********************/
/******************************************************************************/

/******************************************************************************/
/******************** Variables and User Defined Data Types *******************/
/******************************************************************************/

/******************************************************************************/
/************************** Functions Declaration *****************************/
/******************************************************************************/

/******************************************************************************/
/************************ Functions Definitions *******************************/
/******************************************************************************/
/* @brief	Main function
 * @details	This is a main entry function for firmware application
 */
int main(void)
{
	/* Initialize the AD719X IIO interface */
	if (ad719x_iio_initialize()) {
		assert(false);
	}

	while (1) {
		/* Monitor the IIO client events */
		ad719x_iio_event_handler();
	}
}
